package com.jasper.service;

import com.jasper.pojo.UserAddress;
import com.jasper.pojo.bo.AddressBO;

import java.util.List;

public interface AddressService {


    /**
     * 查询用户收货地址列表
     * @param userId
     * @return
     */
    List<UserAddress> queryAll(String userId);

    void addNewUserAddress(AddressBO addressBO);

    void updateUserAddress(AddressBO addressBO);

    void deleteUserAddress(String userId, String addressId);

    void updateUserAddress2BeDefault(String userId, String addressId);

    UserAddress queryUserAddress(String userId, String addressId);
}
